<div class="card-box form">
    <div class="card-box-title">
        {{ $form->title() }}
        <div class="cbt-btn-group-left" style="left: {{ $width['label'] + 30 }}px;">
            {!! $form->renderHeaderTools() !!}
        </div>
    </div>

    <div class="card-box-content no-padding">
        {!! $form->open(['class' => 'layui-form admin-form']) !!}

        @if(!$tabObj->isEmpty())
            @include('admin.form.tab', compact('tabObj'))
        @else

            @foreach($form->fields() as $field)
                {!! $field->render() !!}
            @endforeach

        @endif

        <div class="card-box-footer">
            <div class="cbt-btn-group-left" style="left: {{ $width['label'] + 30 }}px;">
                {!! $form->renderFooterButtons() !!}
            </div>
        </div>

        @if(!$form->isMode(\App\Admin\Form\Builder::MODE_VIEW) && $form->option('enableSubmit'))
            <input type="hidden" name="_token" value="{{ csrf_token() }}">
        @endif

        @foreach($form->getHiddenFields() as $hiddenField)
            {!! $hiddenField->render() !!}
        @endforeach

        {!! $form->close() !!}
    </div>
</div>
